import Layout from '@/views/layout/Layout'

export const studyRouter= [
  {
    path: '/study',
    component: Layout,
    redirect: '/study/question/list',
    name: 'study',
    meta: {title: '学习', icon: 'study'},
    hidden: false,
    children: [
      {
        path: 'question/list',
        name: 'listQuestion',
        component: () => import('@/views/study/question/List'),meta: {title: '题目列表', icon: 'product-list'}
      },
      {
        path: 'question/edit/:id?',
        name: 'editQuestion',
        component: () => import('@/views/study/question/Edit'),meta: {title: '题目编辑', icon: 'product-list'},hidden: true
      },
      {
        path: 'exam/list',
        name: 'listExam',
        component: () => import('@/views/study/exam/List'),meta: {title: '试卷管理', icon: 'product-list'}
      },
      {
        path: 'exam/edit/:id?',
        name: 'editExam',
        component: () => import("@/views/study/exam/Edit"),meta: {title: '试卷编辑', icon: 'product-list'},hidden: true
      },
      {
        path: 'ask/list',
        name: 'askList',
        component: () => import('@/views/study/ask/List'),meta: {title: '答题列表', icon: 'product-list'}
      },
      {
        path: 'ask/edit/:id?',
        name: 'askExam',
        component: () => import("@/views/study/ask/Ask"),meta: {title: '开始答题', icon: 'product-list'},hidden: true
      },
      {
        path: 'ask/result/:id',
        name: 'examResult',
        component: () => import("@/views/study/ask/ExamResult"),meta: {title: '答题结果', icon: 'product-list'},hidden: true
      },
    ]
  }
]  
  
  
  